
COMPIL_PRE=arm-linux-

led_on.bin:led_on.s
	${COMPIL_PRE}gcc -g -c -o led_on.o led_on.s
	${COMPIL_PRE}ld -Ttext 0x0 -g led_on.o -o led_on_elf
	${COMPIL_PRE}objcopy -O binary -S led_on_elf led_on.bin

led_off.bin:led_on.s
	${COMPIL_PRE}gcc -g -c -o led_off.o led_off.s
	${COMPIL_PRE}ld -Ttext 0x0 -g led_off.o -o led_off_elf
	${COMPIL_PRE}objcopy -O binary -S led_off_elf led_off.bin

clean:
	rm -f *.o *_elf *.bin

